import 'package:flutter/material.dart';
import '../../domain/usecases/increment_counter.dart';
import '../../domain/entities/counter.dart';

class CounterProvider with ChangeNotifier {
  final IncrementCounter incrementCounter;
  Counter _counter = Counter(0);

  CounterProvider(this.incrementCounter);

  Counter get counter => _counter;

  void increment() {
    incrementCounter();
    notifyListeners();
  }
}